﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model IEnumerable<PessMvc.Models.PreviousArchiveModel>

@{
    ViewBag.Title = "PreviousArchives";
}

<h2>历史档案列表</h2>
<div id="operate">@Html.ActionLink("Back当前档案", "Details", "Archive", new {id=ViewBag.ArchiveID },null)</div>
@if(Model!=null)
{
    var grid = new WebGrid(Model);
    @grid.GetHtml(columns:grid.Columns(
    grid.Column("ActivityName",header:"活动名称"),
    grid.Column("TeacherName",header:"教师"),
    grid.Column("SerialNumber",header:"档案编号"
    ,format:@<text>@Html.ActionLink((string)item.SerialNumber, "PreviousArchiveDetails", "Archive", new {archiveID=item.ArchiveID,backtoID=ViewBag.ArchiveID},null)</text>)
        )
    )
}
else
{
    <h3>没有历史档案</h3>
}

<script language="javascript">
    if (document.getElementsByTagName("table").length > 0) {
        document.getElementsByTagName("table")[0].className = "oddTable";
        document.getElementsByTagName("table")[0].id = "fileList";
    }
</script>

